<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Kotori
  Date: 2022/10/18
  Time: 9:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div>
    <c:if test="${empty sessionScope.loginUser}">
        <a href="/login">登录</a> |
        <a href="/regist">注册</a>
    </c:if>
    <c:if test="${not empty sessionScope.loginUser}">
        <span>欢迎<span class="um_span">${sessionScope.loginUser}</span>光临英谷书城</span>
        <a href="/order/myOrder">我的订单</a>
        <a href="/user/logout">注销</a>&nbsp;
    </c:if>
    <a href="/cart/list">购物车</a>
    <a href="/manager">后台管理</a>
</div>
